<template>
  <el-breadcrumb class="app-breadcrumb">
    <el-breadcrumb-item>
      <span class="no-redirect">{{ levelList.meta.title }}</span>
    </el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>

export default {
  data() {
    return {
      levelList: null
    }
  },
  watch: {
    $route() {
      this.getBreadcrumb()
    }
  },
  created() {
    this.getBreadcrumb()
  },
  methods: {
    getBreadcrumb() {
      // only show routes with meta.title
      this.levelList = this.$route.matched[1]
    }
  }
}
</script>

<style lang="scss" scoped>
.app-breadcrumb.el-breadcrumb {
  .no-redirect {
    font-size: 16px;
    color: rgb(42, 41, 41);
    font-weight: bold;
  }
}
</style>
